.box {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  width: 340px;
  height: 56px;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--font-a80);
  font-weight: 400;
  font-size: 1rem;
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.1876em;
  letter-spacing: 0.00938em;
  background-color: var(--bg-main);
  border: 1px solid var(--bd-a50);
  border-radius: 8px;
  cursor: text;

  .labelBase {
    position: absolute;
    top: 0;
    z-index: 1;
    color: var(--font4);
    font-size: 14px;
    border: 0;
    transition: all 200ms;
    pointer-events: none;
  }

  .labelCenter {
    transform: translate(12px, 18px) scale(1);
  }

  .labelTop {
    transform: translate(7px, 6px) scale(0.75);
  }

  .suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }

  .input {
    display: block;
    box-sizing: content-box;
    width: 100%;
    min-width: 0;
    height: 1.1876em;
    margin: 0;
    padding: 27px 12px 10px;
    color: currentColor;
    font: inherit;
    letter-spacing: inherit;
    background: none;
    border: 0;
    animation-duration: 10ms;
    -webkit-tap-highlight-color: transparent;
  }

  .input:focus {
    outline: none;
  }

  @keyframes onAutoFillStart {
    0% {
      visibility: visible;
    }
  }

  .input:-webkit-autofill {
    color: transparent;
    background-color: var(--font-white);
    background-clip: content-box;

    /* 光标设置为 黑色 */

    /* 上面根据具体情境 可选，box-shadow最重要！！ */
    -webkit-box-shadow: 0 0 0 1000px var(--font-white) inset !important;
    box-shadow: 0 0 0 1000px var(--font-white) inset !important;
    animation-name: onAutoFillStart;
    caret-color: var(--font-invert);
  }
}

.box:hover {
  border: 1px solid var(--base);
}
